# -*- coding: utf-8 -*-

"""
 (c) 2023 - Copyright CTyunOS Inc

 Authors:
   youyifeng <youyf2@chinatelecom.cn>

"""


class NotifierBase():
    def do_status_notify(self, info_list: list, info_type: str):
        pass

    def do_update_nofity(self, info_diff: dict, info_type: str):
        pass

    def hasFunction(self, func_name: str):
        if hasattr(self, func_name) and callable(getattr(self, func_name)):
            return getattr(self, func_name)
        return None
